"""order model change address

Revision ID: 46b6c74e501f
Revises: 59f44615dd17
Create Date: 2025-08-24 10:05:51.083413

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '46b6c74e501f'
down_revision: Union[str, Sequence[str], None] = '59f44615dd17'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    """Upgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('order', sa.Column('address', sa.String(length=500), nullable=True))
    op.drop_column('order', 'address_id')
    # ### end Alembic commands ###


def downgrade() -> None:
    """Downgrade schema."""
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column('order', sa.Column('address_id', sa.VARCHAR(length=255), autoincrement=False, nullable=True))
    op.drop_column('order', 'address')
    # ### end Alembic commands ###
